//microcommand define zi
locale("zh-CN", { description: "快速直达查询字统网", usage: "输入格式：单个汉字或 IDS" });
signature("<ideograph:string>")
action(async ({ session }, ...args) => {
  if (args.join("").match(/[lrudocxmis⿰⿲⿱⿳⿸⿺⿹⿽⿵⿷⿶⿼⿴⿻⿾⿿㇯]/ui)) return ("https://zi.tools/?secondary=ids&seq="+encodeURIComponent(args.join("").trim()))
  return ("https://zi.tools/zi/"+encodeURI(args.join("").trim()))
})